package com.quanyan.runningriding.entity.vo.run.req;

import com.quanyan.common.validation.base.Insert;
import com.quanyan.common.validation.base.Update;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;

/**
 * RunUserVo
 *
 * @author Tu Chun
 * @date 2016/9/4
 */
public class RunUserVo {
    @NotEmpty(groups = {Insert.class,Update.class})
    private String userId;
    private String nickname;
    private String photo;
    private Byte gender;
    /**
     * 用户类型 1-->跑步，2-->骑行
     */
    private Byte userType=1;
    /**
     * app版本
     */
    private String appVersion;
    /**
     * 用户来源 1 微信 、2 qq、3游客
     */
    @NotNull(groups = Insert.class)
    private Byte userSource;
    /**
     * 平台 1 H5 2 Android 3 IOS
     */
    private Byte platform;

    /**
     * 用户身高
     */
    private Double height;

    /**
     * 体重
     */
    private Double weight;

    /**
     * 年龄
     */
    private Integer age;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Byte getUserType() {
        return userType;
    }

    public void setUserType(Byte userType) {
        this.userType = userType;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public Byte getUserSource() {
        return userSource;
    }

    public void setUserSource(Byte userSource) {
        this.userSource = userSource;
    }

    public Byte getPlatform() {
        return platform;
    }

    public void setPlatform(Byte platform) {
        this.platform = platform;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }
    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
